The input type="text" defines a one-line text input field:
Note that the form itself is not visible.
Also note that the default width of a text field is 20 characters.
The input type="password" defines a password field:
The characters in a password field are masked (shown as asterisks or circles).
The input type="submit" defines a button for submitting form data to a form-handler:
If you click "Submit", the form-data will be sent to a page called "/action_page.php".
The input type="reset" defines a reset button that resets all form values to their default values:
If you change the input values and then click the "Reset" button, the form-data will be reset to the default values.
The input type="radio" defines a radio button:
Choose your favorite Web language:
The input type="checkbox" defines a checkbox:
The input type="color" is used for input fields that should contain a color.
Note: type="color" is not supported in Internet Explorer 11.
The input type="date" is used for input fields that should contain a date.
Note: type="date" is not supported in Internet Explorer 11.
Use the min and max attributes to add restrictions to dates:
Note: type="date" is not supported in Internet Explorer 11.
The input type="datetime-local" specifies a date and time input field, with no time zone.
Note: type="datetime-local" is not supported in Internet Explorer 11.
The input type="email" is used for input fields that should contain an e-mail address:
Note: The input type="image" sends the X and Y coordinates of the click that activated the image button.
Show a file-select field which allows a file to be chosen for upload:
Note: The hidden field is not shown to the user, but the data is sent when the form is submitted.
The input type="month" allows the user to select a month and year.
Note: type="month" is not supported in Firefox, Safari, or Internet Explorer 11.
The input type="number" defines a numeric input field.
You can use the min and max attributes to add numeric restrictions in the input field:
Depending on browser support: Fixed steps will apply in the input field.
Depending on browser support: The input type "range" can be displayed as a slider control.
The input type="search" is used for search fields (behaves like a regular text field):
The input type="tel" is used for input fields that should contain a telephone number:
The input type="time" allows the user to select a time (no time zone):
If the browser supports it, a time picker pops up when entering the input field.
Note: type="time" is not supported in Internet Explorer 11.
The input type="url" is used for input fields that should contain a URL address:
The input type="week" allows the user to select a week and year.
If the browser supports it, a date picker pops up when entering the input field.
Note: type="week" is not supported in Firefox, Safari or Internet Explorer 11.